﻿using System.Runtime.Serialization;
using System.Windows.Media.Media3D;
namespace GameBoard
{
    [DataContract]
    internal class ArrowVisualFactory : BaseVisualFactory
    {
        public ArrowVisualFactory(ArrowVisualData d) : base(d)
        {
        }

        public override ModelVisual3D MakeVisual()
        {
            var v = new ArrowVisual();
            v.PopulateVisualData(VisualData);
            return v.VisualElement;
        }
    }
}